﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberEditInfo.aspx.cs" Inherits="CNVP.JShop.Web.Member.MemberEditInfo" %>
<%@ Register src="Footer.ascx" tagname="Footer" tagprefix="uc1" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="LeftNav.ascx" tagname="LeftNav" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>会员信息编辑</title>
    <link href="css/Global.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/Fonts.css" rel="stylesheet" type="text/css" media="all"  />
<link href="css/Style.css" rel="stylesheet" type="text/css" media="all" />
<link href="../CSS/MemberCenter.css" rel="stylesheet" type="text/css" media="all" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/procp.js"></script>
    <script src="../Scripts/Common.js" type="text/javascript"></script>
    <script src="../Scripts/Users.js" type="text/javascript"></script>

</head>
<body onload="ProvinceChange()">
    <form id="form1" runat="server">
<uc1:Header ID="Header1" runat="server" />
<div class="Width MBody clearfix">
<uc1:LeftNav ID="LeftNav1" runat="server" />

<div class="MRight">
                <div class="MRightTitle"><p>会员信息编辑</p></div>
                <div class="MRightBox">
					<!-- Box Contents -->
                    <table border="0" cellpadding="0" cellspacing="0" class="ListTable">
                        <tr>
                            <td>
                                 会员账户:</td>
                            <td>
                                <asp:Label id="lbUserName" runat="server"></asp:Label>
                                </td>
                        </tr>
                        <tr>
                            <td>
                                 会员级别:</td>
                            <td>
                                <asp:Label id="lbUserLevelID" runat="server"></asp:Label>
                                </td>
                        </tr>
                        <tr>
                            <td>
                                  Email:</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server"  /><asp:Label id="lbEmail" runat="server"></asp:Label>
                                </td>
                        </tr>
                         <tr>
                            <td>
                                手机：</td>
                            <td>
                                <asp:TextBox ID="txtMobilePhone" runat="server" MaxLength="50"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                省区：</td>
                            <td>
                                <asp:DropDownList ID="ddlProvince" runat="server">
                                <asp:ListItem Value="0">--请选择--</asp:ListItem>
                                </asp:DropDownList>
                                <span id="selectCity"></span>
                                <span id="selectArea"></span>
                         
                                </td>
                        </tr>
                        <tr>
                            <td>
                                地址：</td>
                            <td>
                                <asp:TextBox ID="txtGetAddress" runat="server" Width="558px" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 其他信息:</td>
                            <td>
                                <asp:TextBox ID="txtOtherText" runat="server" Rows="5" TextMode="MultiLine" 
                                    Width="558px" />
                                </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                                 </td>
                            <td>
                                <asp:Button ID="btUp" runat="server" Text="提 交" OnClick="btUp_Click" />
                                <input type="button" id="btnReturn"  value="取 消" onclick="javascript:history.go(-1)" />
                                </td>
                        </tr>
                    </table>
				

                </div>
</div>
</div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
<script type="text/javascript">
    jQuery(document).ready(CheckUserLogin); 
            function ProvinceChange() {
            var ddlProvince = document.getElementById("<%=ddlProvince.ClientID %>");
            var selectCity = document.getElementById("selectCity");
            selectCity.innerHTML = GetAjaxResponse("../Admin/CommonWindows/AjaxCity.aspx?Type=ProvinceID&Code=" + ddlProvince.value);
            if(<%=Province %>!="0" && <%=City %> !="0")
            {
                if(ddlProvince.value==<%=Province %>)
                {
                    var ListCity = document.getElementById("ListCity");
                    ListCity.value=<%=City %>;
                }
            }
            CityChange();
            
        }
        //选择市时引发的动作
        function CityChange() {
            var ListCity = document.getElementById("ListCity");
            var selectArea = document.getElementById("selectArea");
            selectArea.innerHTML = GetAjaxResponse("../Admin/CommonWindows/AjaxCity.aspx?Type=CityID&Code=" + ListCity.value);
            if(<%=City %>!="0" && <%=Area %> !="0")
            {
                if(ListCity.value==<%=City %>)
                {
                    var ListArea = document.getElementById("ListArea");
                    ListArea.value=<%=Area %>;
                }
            }
        }
        $(function(){
            $("#btUp").click(function(){
                var $txtMobilePhone = $("#txtMobilePhone");
                if ($txtMobilePhone.val() != "") {
                    if(!IsValidMobilePhone($txtMobilePhone.val()))
                    {
                        alert("手机号码格式不正确！");
                        $txtMobilePhone.focus();
                        return false;
                    }
                }
                return true;
            });
        })
</script>
</body>
</html>